<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <style>
    .box {
      width: 100px;
      height: 80px;
      background-color: rgba(255, 0, 0, 0.8);
      transform: translate(50px, 100px);
    }

    .box1 {
      width: 100px;
      height: 80px;
      background-color: rgba(255, 0, 0, 0.8);
      transform: rotate(30deg);
    }

    .box2 {
      width: 100px;
      height: 80px;
      background-color: rgba(255, 0, 0, 0.8);
      transform: scale(2, 3);
    }

    p {
      font-size: 12px;
      transform: scale(0.5);
    }
  </style>
</head>

<body>
  <div class="box"></div>
  <div class="box1"></div>
  <div class="box2"></div>
  <p>将字体缩小为6px</p>
</body>

</html>